|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.ChargeSnapshotHolderModel
public class ChargeSnapshotHolderModel
This class represents a charge activation inside a
subscription snapshot holder,
and contains the list of included counters.
It contains the following information:
status of the charge activation.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargeSnapshotHolder">
<xs:complexType>
<xs:sequence>
<xs:element ref="counter" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="code" type="xs:string" />
<xs:attribute name="status" type="CAStatusType" />
<xs:attribute name="lastActivationDate" type="xs:dateTime" />
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
MODEL_NAME
The name of the object. |
| Constructor Summary | |
|---|---|
ChargeSnapshotHolderModel()
Builds an empty ChargeSnapshotHolderModel. |
|
ChargeSnapshotHolderModel(java.lang.String chargeCode)
Builds a ChargeSnapshotHolderModel with a charge activation code. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
void |
addCounter(CounterModel counter)
Add a counter to the snapshot holder |
java.lang.String |
getCode()
Gets the code of the associated charge activation. |
java.util.List<CounterModel> |
getCounters()
Gets the list of counters contained in the snapshot holder. |
java.util.Date |
getLastActivationDate()
Gets the last activation date stored for the associated charge activation. |
java.lang.String |
getStatus()
Gets the status stored for the associated charge activation. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setCode(java.lang.String code)
Sets the code of the associated charge activation. |
void |
setCounters(java.util.List<CounterModel> counters)
Sets the list of counters contained in the snapshot holder. |
void |
setLastActivationDate(java.util.Date lastActivationDate)
Sets the last activation date stored for the associated charge activation. |
void |
setStatus(java.lang.String status)
Sets the status stored for the associated charge activation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MODEL_NAME
| Constructor Detail |
|---|
public ChargeSnapshotHolderModel()
ChargeSnapshotHolderModel.
public ChargeSnapshotHolderModel(java.lang.String chargeCode)
ChargeSnapshotHolderModel with a charge activation code.
chargeCode - the code of a charge activation| Method Detail |
|---|
public java.lang.String getCode()
charge activation.
charge activationpublic void setCode(java.lang.String code)
charge activation.
code - the code of the associated charge activationpublic java.lang.String getStatus()
charge activation. Possible values:
ChargeActivationModel.NEVER_ACTIVATED_STRChargeActivationModel.ACTIVE_STRChargeActivationModel.SUSPENDED_STRChargeActivationModel.CANCELLED_STRChargeActivationModel.EARLY_CANCELLED_STRChargeActivationModel.EXPIRED_STR
charge activationpublic void setStatus(java.lang.String status)
charge activation. Possible values:
ChargeActivationModel.NEVER_ACTIVATED_STRChargeActivationModel.ACTIVE_STRChargeActivationModel.SUSPENDED_STRChargeActivationModel.CANCELLED_STRChargeActivationModel.EARLY_CANCELLED_STRChargeActivationModel.EXPIRED_STR
status - the status to store for the associated charge activationpublic java.util.Date getLastActivationDate()
charge activation.
charge activationpublic void setLastActivationDate(java.util.Date lastActivationDate)
charge activation.
lastActivationDate - the last activation date to store for the associated charge activationpublic java.util.List<CounterModel> getCounters()
counters contained in the snapshot holder.
counters contained in the snapshot holderpublic void setCounters(java.util.List<CounterModel> counters)
counters contained in the snapshot holder.
counters - the list of counters contained in the snapshot holderpublic void addCounter(CounterModel counter)
counter to the snapshot holder
counter - the counter to add to the snasphot holderpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be added
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||